<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page contentType = "text/html;charset=UTF-8" %>
<%--
 *  File:     ItemSelectForPO.jsp
 *  @Author:  KentZhong 
 *  Date:     2002/01/14
 *  Edit By:  Rael Zhu
 *  Date:     Friday, January 2nd, 2004
 *
 *  Copyright (C) 2000 - 2002 Oval Technologies, Inc.
 *  All rights reserved. 
 *
 *  This software is the confidential and proprietary information of Oval 
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>
<% //--------------------------------------  setting logger --%>
<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>     
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>


<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%
  Category cat = Category.getInstance("jsp.ItemSelectForPO"); 
	String privilegeCode = "All";
    String strModuleName = "COM";
%>
<%@ include file="/inc/Security.inc" %>
<%@ include file="/inc/PageDefault.inc" %>
<%@ include file="/inc/InitEdit.inc" %>
<%@ include file="/inc/FrmDefault.inc" %> 
<%
  	HashMap userInfo = (HashMap)session.getAttribute("userinfo");
  	if (userInfo == null) userInfo = new HashMap();
  	
  	String strOrgid = request.getParameter("orgid");
  	Integer iOrgId = (Integer)userInfo.get("orgid");
  	String strSelOpt = "";
  	String param = "";
  	if (request.getParameter("selectopt")!=null) 
  	  strSelOpt = "&selectopt=" + request.getParameter("selectopt");
  	if (request.getParameter("param")!=null) 
  	  param = request.getParameter("param");
  	    
  	String strBuyerId = "";
  	String strSellId = "";
  	String strShowTop20 = "";
  	String strIsPOItem = "";
  	String strTransferOrgid = "";
  	String strItemCode = "";
  	String strDeptid = "";
  	if (request.getParameter("itemcode")!=null) 
  	  strItemCode = "&itemcode=" + request.getParameter("itemcode");
  	if (request.getParameter("buyerid")!=null) 
  	  strBuyerId = "&buyerid=" + request.getParameter("buyerid");  
  	if (request.getParameter("sellerid")!=null) 
  	  strSellId = "&sellerid=" + request.getParameter("sellerid");  
  	if (request.getParameter("showtop20")!=null) 
  	  strShowTop20 = "&showtop20=" + request.getParameter("showtop20"); 
  	if (request.getParameter("ispoitem")!=null) 
  	  strIsPOItem = "&ispoitem=" + request.getParameter("ispoitem");         
  	if (request.getParameter("transferorgid")!=null) 
  	  strTransferOrgid = "&transferorgid=" + request.getParameter("transferorgid");   
  	if (request.getParameter("deptid")!=null) 
  	  strDeptid = "&deptid=" + request.getParameter("deptid");         
%>
<%@ include file="/inc/FrmDefault.inc" %>
<html>
<head>
<title>ItemSelectForPO</title>
<PageFlow:CheckPageFlow pageName="itemselectfrm"/>
<%
  String leftURL = "ProdTreeForPO.jsp";
  
  HashMap optInfo = (HashMap)pageContext.getAttribute("optinfo");
  if (optInfo == null) optInfo = new HashMap();
  
  String optValue = (String)optInfo.get("optionvalue");
  if (optValue == null) optValue = "";
  
  if (optValue.equalsIgnoreCase("Y"))
    leftURL = "ProdTreeForPOwDSO.jsp";
%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<frameset rows="0,646" frameborder="NO" border="0" framespacing="0" cols="786*"> 
  <frame name="topFrame" scrolling="NO" border="1" noresize src="../../common/Blank.jsp?<%= OvalTools.randomURL() %>" >
  <frameset cols="200,*" frameborder="NO" border="0" framespacing="0" rows="*"> 
    <frame name="leftFrame" scrolling="NO" border="0" noresize src="<%=JspHelper.filterNull( leftURL )%>?<%= OvalTools.randomURL() %>&param=<%=JspHelper.filterNull(param)%>&langaugecode=<%=JspHelper.filterNull(strFrmLanguageCode)%>&orgid=<%=JspHelper.filterNull(((strOrgid==null)?(iOrgId.toString()):strOrgid))%><%=JspHelper.filterNull(strBuyerId)%><%=JspHelper.filterNull(strSelOpt)%><%=JspHelper.filterNull(strSellId)%><%=JspHelper.filterNull(strShowTop20)%><%=JspHelper.filterNull(strIsPOItem)%><%=JspHelper.filterNull(strTransferOrgid)%><%=JspHelper.filterNull(strItemCode)%><%=JspHelper.filterNull(strDeptid)%>" mainFrame>
    <frame name="rightFrame" scrolling="AUTO" border="0" src="Blank.jsp?<%= OvalTools.randomURL() %>"><%--ItemSelect1.jsp?<%= OvalTools.randomURL() %>&langaugecode=<%=JspHelper.filterNull(strFrmLanguageCode)%>&orgid=<%=JspHelper.filterNull((iOrgId==null)?"":(iOrgId.toString()))%><%=JspHelper.filterNull(strSelOpt)%>"--%>
  </frameset>
</frameset>
<noframes> </noframes> 
<body>
</body>
</html>



